note
	description: "[
					Helper class for Eiffel Auto-test.
					]"
	date: "$Date$"
	revision: "$Revision$"

class
	TEST_SET_HELPER 

inherit
	EQA_TEST_SET

feature -- Status Report

	assert_strings_equal (a_tag: STRING; a_expected, a_actual: STRING)
			-- Is `a_exected' the same as `a_actual'
		do
			if attached a_tag as al_tag and then
					attached a_expected as al_expected and then
					attached a_actual as al_actual then
				if not al_expected.same_string (al_actual) then
					print (expected + "[" + al_expected + "]" + actual + "[" + al_actual + "]")
					assert (al_tag, False)
				end
			end
		end

	assert_numbers_equal (a_tag: STRING; a_expected, a_actual: INTEGER)
			-- Is `a_exected' the same as `a_actual'
		do
			if attached a_tag as al_tag and then
					attached a_expected as al_expected and then
					attached a_actual as al_actual then
				if not al_expected.is_equal (al_actual) then
					print (expected + "[" + al_expected.out + "]" + actual + "[" + al_actual.out + "]")
					assert (al_tag, False)
				end
			end
		end

feature {NONE} -- Implementation: Constants

	expected: STRING = "Expected:"

	actual: STRING = "%NActual  :"

note
	copyright: "Copyright (c) 2012-2012, Greater Atlanta User Group for Eiffel (GAUGE)"
	license: "GPL version 2 (see http://www.eiffel.com/licensing/gpl.txt)"
	licensing_options: "http://www.eiffel.com/licensing"
	copying: "[
			This file is part of the Greater Atlanta User Group for Eiffel (GAUGE), Eiffel Development Environment.
			
			GAUGE's Eiffel Development Environment is free
			software; you can redistribute it and/or modify it under
			the terms of the GNU General Public License as published
			by the Free Software Foundation, version 2 of the License
			(available at the URL listed under "license" above).
			
			GAUGE's Eiffel Development Environment is
			distributed in the hope that it will be useful, but
			WITHOUT ANY WARRANTY; without even the implied warranty
			of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
			See the GNU General Public License for more details.
			
			You should have received a copy of the GNU General Public
			License along with Eiffel Software's Eiffel Development
			Environment; if not, write to the Free Software Foundation,
			Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
		]"
	source: "[
			GAUGE
			Atlanta, GA
			Website http://www.atlantausergroups.com/group/gauge
		]"
end
